<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j"%>
<%@taglib prefix="rich" uri="http://richfaces.org/rich"%>

<!DOCTYPE html>
<f:view locale="#{languageBean.locale}">
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title><h:outputText value="#{msg.pagina_principale} #{patientBean.nome} - #{patientBean.cognome}" /></title>
            <link href="<% out.print(request.getContextPath());%>/resources/css/position.css" rel="stylesheet" type="text/css" />

        </head>
        <body>

            <jsp:include page="/pages/fragments/header.jsp" />


            <jsp:include page="/pages/fragments/patientMenu.jsp" />

            <section>
                <rich:panel>
                    <h:panelGrid columns="2">
                        <f:facet name="header">
                            <h:outputText value="#{msg.personal_data}" />
                        </f:facet>
                        <h:panelGrid columns="1" style="width: 500px">
                            

                            <h:outputText value="#{patientBean.nome}" />
                            <h:outputText value="#{patientBean.cognome}" />
                            <h:outputText value="#{patientBean.dataNascita}" >
                                <f:convertDateTime pattern="#{msg.date_pattern}" />             
                            </h:outputText>
                            <h:outputText value="#{patientBean.luogoNascita}" />
                            <h:outputText value="#{patientBean.indirizzo}" />
                            <h:outputText value="#{patientBean.cap}" />
                            <h:outputText value="#{patientBean.latitudine}" />
                            <h:outputText value="#{patientBean.longitudine}" />

                        </h:panelGrid>
                        <rich:panel >
                            <h:graphicImage value="#{patientBean.foto}" style="max-width: 150px; max-height: 150px;" />
                        </rich:panel>
                    </h:panelGrid>
                </rich:panel>
            </section>
    </html>
</f:view>